home *** CD-ROM | disk | FTP | other *** search
- package com.simeda.ActiveViewer;
-
- import javax.microedition.lcdui.Alert;
- import javax.microedition.lcdui.AlertType;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Image;
- import javax.microedition.midlet.MIDlet;
-
- public class VNCViewer extends MIDlet {
- static VNCViewer instance;
- ConnectForm connectForm = null;
- public Display display = null;
-
- public VNCViewer() {
- instance = this;
- }
-
- public void doShowForm() {
- this.display.setCurrent(this.connectForm);
- }
-
- public void startApp() {
- System.out.println("Starting app");
- this.connectForm = new ConnectForm(this);
- if (this.display == null) {
- this.display = Display.getDisplay(this);
-
- try {
- Alert var1 = new Alert("ActiveViewer", "ActiveViewer v1.4.0\nVNC Viewer for MIDP\n(C) 2001 SIMEDA GmbH\nhttp://www.simeda.com/\nAuthor: Razvan Dragomirescu <drazvan@kappa.ro>\nAll rights reserved.", Image.createImage("/logo.png"), AlertType.INFO);
- var1.setTimeout(-2);
- this.display.setCurrent(var1, this.connectForm);
- } catch (Exception var2) {
- this.doShowForm();
- }
- } else {
- System.out.println("Display is not null");
- this.doShowForm();
- }
-
- }
-
- public void pauseApp() {
- }
-
- public void destroyApp(boolean var1) {
- System.out.println("Destroying app");
- }
-
- public static void quitApp() {
- instance.destroyApp(true);
- instance.notifyDestroyed();
- instance = null;
- }
- }
-